package com.dailyblue.java.spring.mybatis.service.impl;

import com.dailyblue.java.spring.mybatis.bean.Dept;
import com.dailyblue.java.spring.mybatis.mapper.DeptMapper;
import com.dailyblue.java.spring.mybatis.service.DeptService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {
    @Resource
    private DeptMapper deptMapper;

    @Override
    public List<Dept> findAllDept() {
        return deptMapper.findAllDept();
    }
}
